import { ResouceConst } from "../../../component/gconst/ResouceConst";
import { ImagesConst } from "../../resource/ImagesConst";
import { ObjCreate } from "../common/ObjCreate";
import { Language } from "../../../../extend/language/Language";
import { SQuestionPlayerInfo } from "../../../../Message/Public/SQuestionPlayerInfo";
type int = number;
//class QuestionInfoPanel
    
    export  class QuestionInfoPanel /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            var loc1=ResouceConst.getScaleBitmap(ImagesConst.WindowCenterB);
            loc1.width = 197;
            loc1.height = 95;
            addChild(loc1);
            this._markTxt = ObjCreate.createTextField("", 15, 15, 120, 20, this);
            this._correctTxt = ObjCreate.createTextField("", 15, 40, 120, 20, this);
            this._resQuestTxt = ObjCreate.createTextField("", 15, 65, 120, 20, this);
            this._markTxt.htmlText = Language.getStringByParam(35619, 0);
            this._correctTxt.htmlText = Language.getStringByParam(35620, 0);
            this._resQuestTxt.htmlText = Language.getStringByParam(35621, 0);
            return;
        }

        public updatePlayerInfo(arg1: SQuestionPlayerInfo): void
        {
            this._markTxt.htmlText = Language.getStringByParam(35619, arg1.mark);
            this._correctTxt.htmlText = Language.getStringByParam(35620, arg1.right);
            return;
        }

        public updateRemainNum(arg1: int): void
        {
            this._resQuestTxt.htmlText = Language.getStringByParam(35621, arg1);
            return;
        }

        /* internal */ /* var */_markTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_correctTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_resQuestTxt: Object /* flash.text.TextField */;
    }
